import { defineAsyncComponent } from "vue";

export const routes = [
  {
    path: "/login",
    name: "login",
    component: defineAsyncComponent(() => import("../views/Login/Login.vue")),
    meta: {
      title: "登录",
    },
  },
  {
    path: "/",
    name: "OuterFrame ",
    component: defineAsyncComponent(() =>
      import("../components/OuterFrame.vue")
    ),
    redirect: "/home",
    children: [
      {
        path: "/home",
        name: "home ",
        component: defineAsyncComponent(() => import("../views/Home/Home.vue")),
        meta: {
          title: "首页",
        },
      },
      {
        path: "/process/design",
        name: "processdesign ",
        component: defineAsyncComponent(() =>
          import("../views/Workflow/ProcessDesign.vue")
        ),
        meta: {
          title: "流程设计",
        },
      },
    ],
  },
];
